<template>
	<view style="padding: 30rpx;box-sizing: border-box;background-color: #f3f3f3;min-height: 100vh;">
		<view class="box">
			<view class="topBox">
				<view class="zuo">
					<text style="margin-right: 15rpx;font-weight: bold;font-size: 40rpx;">|</text>
					<text>个人资料</text>
				</view>
				
			</view>
			<view class="portraitt">
				<view class="" style="margin: 0 auto;width: 100%;text-align: center;">
					<image style="width: 100rpx;height: 100rpx;border-radius: 50%;display: block;margin: 20rpx auto;" :src="form.base.head_img" mode=""></image>
					<text>{{form.base.name}}</text>
				</view>
			</view>
		</view>
		<view class="box">
			<view class="topBox">
				<view class="zuo">
					<text style="margin-right: 15rpx;font-weight: bold;font-size: 40rpx;">|</text>
					<text>教育经历</text>
				</view>
				
			</view>
			<view class="portrait jy">
				<view class="zuo">
						<view class="" style="width: 15rpx;">
							<view class="" style="width: 15rpx;height: 15rpx;background-color: #3291F8;border-radius: 50%;margin: 0 auto;"></view>
							<view class="" style="width: 5rpx;height: 100%;background-color: #3291F8;margin-left: 5rpx;"></view>
						</view>
						<view class="zzi" v-for="(item,index) in form.edu" :key="index" @click="xg(item.id)">
							<view class="">
								<view class="zi">{{item.start_time}}-{{item.end_time}}</view>
								<view class="zi">{{item.school_name}}  {{item.edu_type_name}}</view>
								<view class="hui">{{item.major}}</view>
							</view>
							<view class="da"> > </view>
						</view>
				</view>
			</view>
		</view>
		
		<view class="box">
			<view class="topBox">
				<view class="zuo">
					<text style="margin-right: 15rpx;font-weight: bold;font-size: 40rpx;">|</text>
					<text>工作经历</text>
				</view>
				
			</view>
			<view class="portrait jy">
				<view class="zuo">
						<view class="" style="width: 15rpx;">
							<view class="" style="width: 15rpx;height: 15rpx;background-color: #3291F8;border-radius: 50%;margin: 0 auto;"></view>
							<view class="" style="width: 5rpx;height: 100%;background-color: #3291F8;margin-left: 5rpx;"></view>
						</view>
						<view class="zzi" v-for="(item,index) in form.exp" :key="index" @click="workxg(item.id)">
							<view class="">
								<view class="zi">{{item.start_time}}-{{item.end_time}}</view>
								<view class="zi">{{item.company_name}}</view>
								<view class="hui">{{item.position}}</view>
							</view>
							<view class="da"> > </view>
						</view>
				</view>
			</view>
		</view>
		
		<view class="box">
			<view class="topBox">
				<view class="zuo">
					<text style="margin-right: 15rpx;font-weight: bold;font-size: 40rpx;">|</text>
					<text>技能/证书</text>
				</view>
				
			</view>
			<view class="portrait gz">
				<view class="zuo" v-for="(item,index) in form.cer" :key="index" @click="skillxg(item.id)">
						<view class="">
							<text>{{item.name}}</text>
							<text>{{item.des}}</text>
						</view>
						<view class=""> > </view>
				</view>
			</view>
		</view>
		<view class="box pj" @click="evaluate">
			<text v-if="form.base.evaluate">{{form.base.evaluate}}</text>
			<text v-else>+自我评价</text>
		</view>
		<view class="box">
			<view class="topBox">
				<view class="zuo">
					<text style="margin-right: 15rpx;font-weight: bold;font-size: 40rpx;">|</text>
					<text>生活照</text>
				</view>
			</view>
			<view class="portrait shz">
				<view class="zuo" v-for="(item,index) in form.base.pic" :key="index">
						<image :src="item" mode=""></image>
						<!-- <image src="../../static/logo.png" mode=""></image> -->
				</view>
			</view>
		</view>
		<view class="boxDwon">
			<view class="yaoyue" @click="openYaoyue(form.user_job_send_id)">
				<image src="../../static/yaoyue.png" mode=""></image>
				<view class="yaoyue-tit">邀约</view>
			</view>
			<view class="mianshi" @click="mianshi()">
				<image src="../../static/mianshi.png" mode=""></image>
				<view class="mianshi-tit">面试</view>
			</view>
			<!-- <view class="ruzhi">
				<image src="../../static/ruzhi.png" mode=""></image>
				<view class="ruzhi-tit">入职</view>
			</view> -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				form:{
					base:{
						head_img:''
					}
				},
				id:''
			}
		},
		onLoad(e) {
			this.id=e.id
		},
		onShow() {
			this.jl()
		},
		methods: {
			async jl(){
				const res = await this.get('/Index/UserCompany/get_has_deliver_resume_info',{user_job_send_id:this.id})
				this.form=res.data.user_resume
				this.form.base.pic=this.form.base.pic.split(',');
				console.log(this.form.base.pic)
			},
			uploadPhotos(){
				uni.navigateTo({
					url:'./uploadPhotos'
				})
			},
			evaluate(){
				uni.navigateTo({
					url:'./evaluate'
				})
			},
			skillxg(e){
				uni.navigateTo({
					url:'./skill?id='+e
				})
			},
			skill(){
				uni.navigateTo({
					url:'./skill'
				})
			},
			workxg(e){
				uni.navigateTo({
					url:'./work?id='+e
				})
			},
			xg(e){
				uni.navigateTo({
					url:'./education?id='+e
				})
			},
			work(){
				uni.navigateTo({
					url:'./work'
				})
			},
			education(){
				uni.navigateTo({
					url:'./education'
				})
			},
			portrait(){
				uni.navigateTo({
					url:'./portrait'
				})
			},
			openYaoyue(e){
				uni.navigateTo({
					url:'./company_invite_interview?id='+this.id
				})
			},
			mianshi(){
				uni.navigateTo({
					url:'./company_invite_notice'
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.box{
		background: #FFFFFF;
		border-radius: 15rpx;
		margin-bottom: 20rpx;
	}
	.topBox{
		display: flex;
		align-items: center;
		justify-content: space-between;
		color: #3291F8;
		padding: 30rpx;
		box-sizing: border-box;
		border-bottom: 1rpx solid #000000;
		.zuo{
			display: flex;
			align-items: center;
			font-size: 35rpx;
		}
		.you{
			font-size: 30rpx;
		}
	}
	.portraitt{
		// padding: 30rpx;
		height: 300rpx;
		display: flex;
		align-items: center;
		box-sizing: border-box;
	}
	.portrait{
		padding: 30rpx;
		box-sizing: border-box;
	}
	.jy{
		display: flex;
		align-items: center;
		justify-content: space-between;
		.zuo{
			width: 100%;
			.zzi{
				display: flex;
				align-items: center;
				justify-content: space-between;
				font-size: 25rpx;
				margin-left: 15rpx;
				margin-bottom: 20rpx;
				.zi{
					margin-bottom: 10rpx;
				}
				.hui{
					color: #b3b3b3;
				}
				.da{
					font-size: 30rpx;
				}
			}
		}
	}
	.gz{
		// display: flex;
		// align-items: center;
		// justify-content: space-between;
		// width: 100%;
			.zuo{
				width: 100%;
				display: flex;
				align-items: center;
				justify-content: space-between;
				text{
					display: block;
					font-size: 24rpx;
					&:last-child{
						color: #b3b3b3;
						margin-top: 15rpx;
					}					
				}
			}
	}
	.pj{
		height: 120rpx;
		text-align: center;
		line-height: 120rpx;
		text{
			color: #3291F8;
		}
	}
	.shz{
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		.zuo{
			image{
				width: 120rpx;
				height: 120rpx;
				margin: 10rpx 10rpx;
			}
		}
	}
	.boxDwon{
		display: flex;
		// justify-content: space-between;
		justify-content: space-around;
		.yaoyue{
			display: flex;
			justify-content: center;
			align-items: center;
			width: 184upx;
			height: 88upx;
			border: 1px solid #3291F8;
			background-color: #F0F9F9;
			border-radius: 20upx;
			image{
				width: 44upx;
				height: 44upx;
			}
			.yaoyue-tit{
				margin-left: 22upx;
				font-size: 28upx;
				color: #3291F8;
			}
		}
		.mianshi{
			display: flex;
			justify-content: center;
			align-items: center;
			width: 184upx;
			height: 88upx;
			border: 1px solid #3291F8;
			background-color: #F0F9F9;
			border-radius: 20upx;
			// margin: 0 68upx;
			image{
				width: 44upx;
				height: 44upx;
			}
			.mianshi-tit{
				margin-left: 22upx;
				font-size: 28upx;
				color: #3291F8;
			}
		}
		.ruzhi{
			display: flex;
			justify-content: center;
			align-items: center;
			width: 184upx;
			height: 88upx;
			border: 1px solid #3291F8;
			background-color: #F0F9F9;
			border-radius: 20upx;
			image{
				width: 44upx;
				height: 44upx;
			}
			.ruzhi-tit{
				margin-left: 22upx;
				font-size: 28upx;
				color: #3291F8;
			}
		}
	}
</style>
